# -*- coding: utf-8 -*-
'''
Created on 06/ott/2009

@author: sax
'''
from django.template import Library

register = Library()



def class_if_errors(error_list, classname):
    for el in error_list:
        if el != {}:
            return classname
    return ""

class_if_errors = register.simple_tag(class_if_errors)